package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);"`
	Password string `gorm:"type:varchar(60);"`
	RealNum  string `gorm:"type:char(18);unique;"`
	Mobile   string `gorm:"type:char(11);unique;"`
}

type Video struct {
	gorm.Model
	RealName string `gorm:"type:varchar(30);"`
	RealNum  string `gorm:"type:char(18);"`
}

func (c *Video) Insert() error {
	return Db.Create(&c).Error
}
